<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<p th:text="${hello}"></p>
<form th:action="@{/demo/test}">
    <input th:type="text" th:name="id">
    <button>提交</button>
</form>

<table>
    <tr>
        <td>下标</td>
        <td>编号</td>
        <td>姓名</td>
        <td>地址</td>
    </tr>
    <tr th:each="user,userCa:${userList}">
        <td><span th:text="${userCa.index}"></span></td>
        <td> <span th:text="${user.id}"></span></td>
        <td> <span th:text="${user.name}"></span></td>
        <td><span th:text="${user.address}"></span></td>
    </tr>
</table>

<div th:each="map,dataMap:${dataMap}">
<div th:text="${map}"></div>
    key:<div th:text="${dataMap.current.key}"></div>
    value:<div th:text="${dataMap.current.value}"></div>
</div>
<div th:each="nm,nmca:${names}">
<span th:text="${nmca.count}"></span>
<span th:text="${nm}"></span>
</div>

<div>
    <span th:text="${#dates.format(nowdate,'yyyy-MM-dd hh:mm:ss')}"></span>

</div>

<div><span th:if="${(age>18)}">终于成年了
</span>
</div>





</body>
</html>